package com.qqb.dao;

import com.qqb.pojo.Company;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface CompanyDao extends Mapper<Company> {

    @Select("select Max(cid) from com_info")
     String getMaxCompanyId();

    @Select("select count(1) from com_info where paper_no =#{paper_no} and paper_type =#{paper_type} and com_name =#{com_name}")
    Integer getNum(@Param("paper_no") String paperNo,@Param("paper_type") String paperType ,@Param("com_name") String comName);



}
